package org;

public class Sum {

    public int sum(Integer n){
        return n==1?1:n+sum(n-1);
    }

    public static void main(String[] args) {
        System.out.println(new Sum().sum(100));
    }

}
